package com.netposa.datawarehouse.bodysearch.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(
   prefix = "netposa.body-query"
)
public class BodyQueryProps {
   private Integer initRangeMs = 3600000;

   public Integer getInitRangeMs() {
      return this.initRangeMs;
   }

   public void setInitRangeMs(Integer initRangeMs) {
      this.initRangeMs = initRangeMs;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof BodyQueryProps)) {
         return false;
      } else {
         BodyQueryProps other = (BodyQueryProps)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$initRangeMs = this.getInitRangeMs();
            Object other$initRangeMs = other.getInitRangeMs();
            if (this$initRangeMs == null) {
               if (other$initRangeMs != null) {
                  return false;
               }
            } else if (!this$initRangeMs.equals(other$initRangeMs)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof BodyQueryProps;
   }

   public int hashCode() {
      
      int result = 1;
      Object $initRangeMs = this.getInitRangeMs();
      result = result * 59 + ($initRangeMs == null ? 43 : $initRangeMs.hashCode());
      return result;
   }

   public String toString() {
      return "BodyQueryProps(initRangeMs=" + this.getInitRangeMs() + ")";
   }
}
